import request from '@/utils/request'

// 获取用户详细信息
export const getInfo = () => {
  return request({
    url: '/getInfo',
    method: 'get'
  })
}

// 平均健康度评分呢
export function getAverageScore(query) {
  return request({
    // url: 'http://127.0.0.1:4523/m1/4161997-0-default/getAverageScore',
    url: '/nhpHomePage/queryCountyAvgScore',
    method: 'get',
    params: query
  })
}

// 基站健康度分布情况
export function getDistributionInfo(query) {
  return request({
    // url: 'http://127.0.0.1:4523/m1/4161997-0-default/screen/getDistributionInfo',
    url: '/nhpHomePage/queryStationDistribution',
    method: 'get',
    params: query
  })
}

// 五维评分雷达图
export function getRadarChartData(query) {
  return request({
    // url: 'http://127.0.0.1:4523/m1/4161997-0-default/screen/getRadarChartData',
    url: '/nhpHomePage/queryStationDimensions',
    method: 'get',
    params: query
  })
}

// 重点数据总览
export function getOverviewInfo(query) {
  return request({
    // url: 'http://127.0.0.1:4523/m2/4161997-0-default/176516439',
    url: '/nhpHomePage/querySummary4Screen',
    method: 'get',
    params: query
  })
}
export function getOverviewInfo1(query) {
  return request({
    url: '/nhpHomePage/querySummary4Screen',
    method: 'get',
    params: query
  })
}